import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listStudent(query) {
  return request({
    url: '/system/report/student',
    method: 'get',
    params: query
  })
}

// 获取报告详情
export function getReportDetail(reportId) {
  return request({
    url: '/system/report/detail/' + reportId,
    method: 'get'
  })
}

// 更新报告信息
export function updateReport(data) {
  return request({
    url: '/system/report',
    method: 'put',
    data: data
  })
}

// 下载报告
export function downloadReport(reportId) {
  return request({
    url: '/system/report/download/' + reportId,
    method: 'get',
    responseType: 'blob'
  })
}
// 获取报告详情
export function getReportDetailss(data) {
  return request({
    url: '/system/report/student/info',
    method: 'get',
    params:data
  })
}

export function getReportOverview(data) {
  return request({
    url: '/system/report/school/info',
    method: 'get',
    params:data
  })
}
